package com.sunny.fetch.pojo;

import javax.persistence.*;

@Table(name = "f_suspend_d")
public class FSuspendD {
    @Id
    private Long tid;

    /**
     * TS代码
     */
    @Column(name = "ts_code")
    private String tsCode;

    /**
     * 停复牌日期
     */
    @Column(name = "trade_date")
    private String tradeDate;

    /**
     * 日内停牌时间段
     */
    @Column(name = "suspend_timing")
    private String suspendTiming;

    /**
     * 停复牌类型：S-停牌，R-复牌
     */
    @Column(name = "suspend_type")
    private String suspendType;

    public FSuspendD(Long tid, String tsCode, String tradeDate, String suspendTiming, String suspendType) {
        this.tid = tid;
        this.tsCode = tsCode;
        this.tradeDate = tradeDate;
        this.suspendTiming = suspendTiming;
        this.suspendType = suspendType;
    }

    public FSuspendD() {
        super();
    }

    /**
     * @return tid
     */
    public Long getTid() {
        return tid;
    }

    /**
     * @param tid
     */
    public void setTid(Long tid) {
        this.tid = tid;
    }

    /**
     * 获取TS代码
     *
     * @return ts_code - TS代码
     */
    public String getTsCode() {
        return tsCode;
    }

    /**
     * 设置TS代码
     *
     * @param tsCode TS代码
     */
    public void setTsCode(String tsCode) {
        this.tsCode = tsCode;
    }

    /**
     * 获取停复牌日期
     *
     * @return trade_date - 停复牌日期
     */
    public String getTradeDate() {
        return tradeDate;
    }

    /**
     * 设置停复牌日期
     *
     * @param tradeDate 停复牌日期
     */
    public void setTradeDate(String tradeDate) {
        this.tradeDate = tradeDate;
    }

    /**
     * 获取日内停牌时间段
     *
     * @return suspend_timing - 日内停牌时间段
     */
    public String getSuspendTiming() {
        return suspendTiming;
    }

    /**
     * 设置日内停牌时间段
     *
     * @param suspendTiming 日内停牌时间段
     */
    public void setSuspendTiming(String suspendTiming) {
        this.suspendTiming = suspendTiming;
    }

    /**
     * 获取停复牌类型：S-停牌，R-复牌
     *
     * @return suspend_type - 停复牌类型：S-停牌，R-复牌
     */
    public String getSuspendType() {
        return suspendType;
    }

    /**
     * 设置停复牌类型：S-停牌，R-复牌
     *
     * @param suspendType 停复牌类型：S-停牌，R-复牌
     */
    public void setSuspendType(String suspendType) {
        this.suspendType = suspendType;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", tid=").append(tid);
        sb.append(", tsCode=").append(tsCode);
        sb.append(", tradeDate=").append(tradeDate);
        sb.append(", suspendTiming=").append(suspendTiming);
        sb.append(", suspendType=").append(suspendType);
        sb.append("]");
        return sb.toString();
    }
}